.class Lcom/waiqin365/lightapp/kaoqin/g;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/compons/c/f;

.field final synthetic b:Lcom/waiqin365/lightapp/kaoqin/f;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kaoqin/f;Lcom/waiqin365/compons/c/f;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/g;->b:Lcom/waiqin365/lightapp/kaoqin/f;

    iput-object p2, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    const/4 v7, 0x1

    const/4 v6, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/f;->e()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/g;->b:Lcom/waiqin365/lightapp/kaoqin/f;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kaoqin/f;->a:Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;->d(Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/f;->b()D

    move-result-wide v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v2}, Lcom/waiqin365/compons/c/f;->c()D

    move-result-wide v2

    iget-object v4, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v4}, Lcom/waiqin365/compons/c/f;->a()I

    move-result v4

    invoke-static {v0, v1, v2, v3, v4}, Lcom/waiqin365/compons/c/m;->a(DDI)[D

    move-result-object v2

    new-instance v3, Lcom/baidu/mapapi/map/MyLocationData$Builder;

    invoke-direct {v3}, Lcom/baidu/mapapi/map/MyLocationData$Builder;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/f;->f()D

    move-result-wide v0

    const-wide/16 v4, 0x0

    cmpg-double v0, v0, v4

    if-gtz v0, :cond_3

    const-wide v0, 0x407f400000000000L    # 500.0

    :goto_1
    double-to-float v0, v0

    invoke-virtual {v3, v0}, Lcom/baidu/mapapi/map/MyLocationData$Builder;->accuracy(F)Lcom/baidu/mapapi/map/MyLocationData$Builder;

    move-result-object v0

    aget-wide v4, v2, v6

    invoke-virtual {v0, v4, v5}, Lcom/baidu/mapapi/map/MyLocationData$Builder;->latitude(D)Lcom/baidu/mapapi/map/MyLocationData$Builder;

    move-result-object v0

    aget-wide v2, v2, v7

    invoke-virtual {v0, v2, v3}, Lcom/baidu/mapapi/map/MyLocationData$Builder;->longitude(D)Lcom/baidu/mapapi/map/MyLocationData$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MyLocationData$Builder;->build()Lcom/baidu/mapapi/map/MyLocationData;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/g;->b:Lcom/waiqin365/lightapp/kaoqin/f;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kaoqin/f;->a:Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;->e(Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;)Lcom/baidu/mapapi/map/BaiduMap;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->setMyLocationData(Lcom/baidu/mapapi/map/MyLocationData;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/g;->b:Lcom/waiqin365/lightapp/kaoqin/f;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kaoqin/f;->a:Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;->h(Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;)Z

    move-result v1

    if-eqz v1, :cond_0

    :try_start_0
    new-instance v1, Lcom/baidu/mapapi/model/LatLng;

    iget-wide v2, v0, Lcom/baidu/mapapi/map/MyLocationData;->latitude:D

    iget-wide v4, v0, Lcom/baidu/mapapi/map/MyLocationData;->longitude:D

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-static {v1}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->newLatLng(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/g;->b:Lcom/waiqin365/lightapp/kaoqin/f;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kaoqin/f;->a:Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;->e(Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;)Lcom/baidu/mapapi/map/BaiduMap;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/g;->b:Lcom/waiqin365/lightapp/kaoqin/f;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/f;->a:Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;

    invoke-static {v0, v6}, Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;->a(Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;Z)Z

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/g;->b:Lcom/waiqin365/lightapp/kaoqin/f;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/f;->a:Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;

    new-instance v1, Lcom/waiqin365/compons/c/f;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    invoke-direct {v1, v2}, Lcom/waiqin365/compons/c/f;-><init>(Lcom/waiqin365/compons/c/f;)V

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;->a(Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;Lcom/waiqin365/compons/c/f;)Lcom/waiqin365/compons/c/f;

    :goto_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/g;->b:Lcom/waiqin365/lightapp/kaoqin/f;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/f;->a:Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;

    invoke-static {v0, v6}, Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;->b(Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;Z)Z

    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/g;->b:Lcom/waiqin365/lightapp/kaoqin/f;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/f;->a:Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;->d(Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/g;->b:Lcom/waiqin365/lightapp/kaoqin/f;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kaoqin/f;->a:Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;

    const v2, 0x7f080517

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/f;->b()D

    move-result-wide v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v2}, Lcom/waiqin365/compons/c/f;->c()D

    move-result-wide v2

    invoke-static {v0, v1, v2, v3}, Lcom/waiqin365/compons/c/m;->c(DD)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v1, v0}, Lcom/waiqin365/compons/c/f;->b(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/f;->e()Ljava/lang/String;

    move-result-object v0

    :goto_4
    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/g;->b:Lcom/waiqin365/lightapp/kaoqin/f;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kaoqin/f;->a:Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;->d(Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    :cond_2
    const-string/jumbo v0, "%s,%s"

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/Object;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v2}, Lcom/waiqin365/compons/c/f;->b()D

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v2

    aput-object v2, v1, v6

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v2}, Lcom/waiqin365/compons/c/f;->c()D

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v2

    aput-object v2, v1, v7

    invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto :goto_4

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/g;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/f;->f()D

    move-result-wide v0

    goto/16 :goto_1

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/g;->b:Lcom/waiqin365/lightapp/kaoqin/f;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/f;->a:Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;->d(Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/g;->b:Lcom/waiqin365/lightapp/kaoqin/f;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kaoqin/f;->a:Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;

    const v2, 0x7f080384

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kaoqin/KaoQinMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_3

    :catch_0
    move-exception v0

    goto/16 :goto_2
.end method
